package com.gmcas.service.impl;

import com.gmcas.dao.UserMapper;
import com.gmcas.dao.entity.User;
import com.gmcas.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zhangshuai on 2017/9/15.
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public boolean uniquenessCheck(String username) {
        return false;
    }

    @Override
    public User selectByUsername(String username) {
        return userMapper.selectByUsername(username);
    }

    @Override
    public boolean updateByUsername(User user) {
        return false;
    }

    @Override
    public int createUser(User user) {
        return userMapper.insertSelective(user);
    }
}
